package com.zhong.dagger2.di.module;

import android.app.Application;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/*
 * 项目名:    Dagger2Test
 * 包名       com.zhong.dagger2.di.module
 * 文件名:    AppModule
 * 创建者:    ZJB
 * 创建时间:  2017/10/23 on 21:14
 * 描述:     TODO
 */
@Module
public class AppModule {
    Application application;

    public AppModule(Application application) {
        this.application = application;
    }

    @Singleton
    @Provides
    public Application provideApp() {
        return application;
    }

}
